home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
dr_main1.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-12
|
3KB
|
77 lines
#include <alloc.h> // The example of simple graphics editor interface
#include <iostream.h> // creation. The program shows linemenu with
#include <conio.h> // Paint Brush like choices: File, Edit, View etc.,
// Help system explains the behavior of package
#include "kh_draw.h"
#include "progkit.h"
extern unsigned _stklen = 16000;
void main()
{
if(!init_KNOW_HOW(-1, 1))
return;
///////////////////////////
rect r_help(5, 5, 70, 25);
help_object = new HypertextView(r_help, "draw.hlp", "_help.pcy",
MOVE | RESIZE,
pScreenSet->sub_interval,
SHOW_BORDER, 10, "HOTKEY",
BLUE, YELLOW, 56);
KH_Draw* kh_draw = new KH_Draw("", "work.buf", 100);
KH_Draw* kh_draw1 = new KH_Draw("", "work1.buf", 200);
kh_draw->set_ret(RET_CANCEL | RET_STACKED);
kh_draw1->set_ret(RET_CANCEL | RET_STACKED);
rect r_base(0, 0, 80, 25);
Window* w1 = new Window(r_base, "", "", 0, NO_BORDER, NO_BORDER);
w1->set_ret(RET_STACKED);
ProgramKit* know_how_draw = new ProgramKit(100, loc(39, 12));
know_how_draw->background(w1);
know_how_draw->add(kh_draw);
know_how_draw->add(kh_draw1);
pColorSet->loadColorSet(1);
know_how_draw->WindowManager::show_window(w1);
pColorSet->loadColorSet(0);
know_how_draw->WindowManager::show_window(kh_draw);
know_how_draw->WindowManager::show_window(kh_draw1);
know_how_draw->exe(); // process the program
delete help_object;
delete know_how_draw;
close_KNOW_HOW();
closegraph();
cout << "KNOW-HOW 5.0,Software development kit,Library in source codes (Borland C++ 3.x)\n";
cout << "█████████████████████████████████████████████████████████████████████████████\n";
cout << ">>> KNOW-HOW.Interface: GUI, LJ fonts(SFP) screen output, PCX, multiple over-\n";
cout << "lapped windows, Scripts and macroses. DOS\n";
cout << ">>> KNOW-HOW.DEBUGGER: For any situations, including hang-up. DOS\n";
cout << ">>> KNOW_HOW.GRAPHICS: Using common code for any graphics library. Now it is\n";
cout << "realized now for BGI and Windows GDI. Scrolling, Zooming, reflection of image,\n";
cout << "rotations and complex rotations. Rotated and filled BGI fonts. DOS, WINDOWS\n";
cout << ">>> KNOW-HOW.SLANG: Basic-like language. Multy-file programs, FOR, IF and so\n";
cout << "on operators. User could derive from Slang the child class with new operators\n";
cout << "to access functions of his concrete package. DOS, WINDOWS\n";
cout << ">>> KNOW-HOW.VECTOR: Vector pictures editor. Simple KNOW-HOW.GRAPHICS\n";
cout << "interpreter in DOS or Windows. Powerfull tool for maketing BGI, GDI and so on.\n";
cout << ">>> KNOW-HOW.DRAW: PCX pictures editor. All standart image-editing functions.\n";
cout << ">>> KNOW-HOW.PRINT: Create on disk virtual screen of any size, show, scroll\n";
cout << "on screen or print on different printers with any deformation. DOS.\n";
cout << ">>> KNOW-HOW.DATASHELL: Shell for Paradox Engine 3.01 or any other database\n";
cout << "engine. View and edit tables and querries in Paradox-like style. Multy-table\n";
cout << "QBE querries. Print reports in user-defined form. DOS.\n";
cout << ">>> KNOW-HOW.GRAF: Business and scientific diagrams. Line, Markers,\n";
cout << "Line-and-markers, Bar, 3d-Bar, Stacked bar graphs... DOS, WINDOWS\n";
}